package com.atguigu.yygh.cmn;/*
 * @author: XueYouPeng
 * @time: 2023/6/7 9:32
 */

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;

@SpringBootTest
public class test_1 {

    @Autowired
    RedisTemplate redisTemplate;
    @Autowired
    StringRedisTemplate stringRedisTemplate;

    @Test
    public void  test_1(){
        stringRedisTemplate.opsForValue().set("name","张三");
    }

}
